import requests

from com.yuhua.oa.utils.utils import oahost


class User():
    @classmethod
    def login(self,username,password):
        user = {"username":username,"password":password}
        loginResp = requests.post(oahost + "/login/noCode", json=user)
        return loginResp